<template>
    <div class="goods-management">
        <tabs :tabs="tabLists" class="tab" :handleClick="handleClick"></tabs>
        <router-view></router-view>
    </div>
</template>

<script>
	import Tabs from '@/components/tabs/tabs'

	export default {
		data() {
			return {
				tabLists:[]
            }
        },
        methods: {
	        handleClick(tab, event) {
		        const path = this.tabLists[tab.index].name;
		        this.$router.push({
			        path
		        });
	        }
        },
        created() {

        },
		components: {
			Tabs
        },
		name: "goods-management"
	}
</script>

<style scoped>

</style>